package com.of.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.of.pojo.Orders;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface OrdersMapper extends BaseMapper<Orders> {

    @Select("SELECT COUNT(1) FROM orders")
    long findTotal();

    List<Orders> findOrdersList(@Param("start") int start, @Param("size") int size, @Param("query") String query);
}
